package com.design.patterns.list.adapter.classadapter;

/**
 * 适配器
 *
 * @author Wangzhiwen
 */
public class VoltageAdapter extends Voltage220V implements Voltage5V {
    /**
     * 将不适配的接口方法转换成可以使用的接口方法
     */
    @Override
    public int out5V() {
        int out220V = out220V();
        return out220V/44;
    }
}
